{extend name='template/base'}{/extend}
{block name='title'}{/block}
{block name='style'}{/block}
{block name='script'}{/block}
{block name='footer'}{/block}
{block name='content'}
<script src="__STATIC__/app/plugin/mui/mui.picker.min.js"></script>
<link rel="stylesheet" type="text/css" href="__STATIC__/css/mui.picker.min.css"/>
<header class="header">
    <div>
        <a class="goback"><i class="iconfont icon-zuoyoujiantou-copy-copy-copy"></i></a>
        订单统计
    </div>
</header>
<footer class="footer">
    <ul>
        <li>
            <a href="{:url('order/index')}">
                <i class="iconfont icon-dingdantianxiexianxing"></i>
                <p>订单列表</p>
            </a>
        </li>
        <li class="active">
            <a href="javascript:; ">
                <i class="iconfont icon-tongji"></i>
                <p>订单统计</p>
            </a>
        </li>
    </ul>
</footer>
<div class="pages" id="pages">
    <template>
        <div class="list-form other">
            <ul>
                <li>
                    <div @tap="bg_time_met()" id="bg_time">
                        开始时间：{{bg_time}}
                    </div>
                    <div @tap="end_time_met()" id="end_time">
                        结束时间：{{end_time}}
                    </div>
                </li>
            </ul>
        </div>
        <div class="list-form other has-b">
            <ul class="title-gray">
                <li>订单系统</li>
            </ul>
            <ul>
                <li>
                    配送中订单总额
                    <span class="pull-right color-primary">￥{{ps_money}}</span>
                </li>
                <li>
                    配送中订单数量
                    <span class="pull-right color-primary">{{ps_count}}</span>
                </li>
                <li>
                    已收货订单总额
                    <span class="pull-right color-primary">￥{{ups_money}}</span>
                </li>
                <li>
                    已收货订单数量
                    <span class="pull-right color-primary">{{ups_count}}</span>
                </li>
            </ul>
        </div>
    </template>
</div>
{/block}
{block name='script_extra'}
<script>
    var list_url = "{:url('index/Order/index')}";
    var detail_url = "{:url('index/Order/detail')}";
    var select_url = "{:url('index/Order/statistics')}";
    var bg_time = "{$data.min_time}";
    var end_time = "{$data.max_time}";
    var ps_money = "{$data.ps_money}";
    var ps_count = "{$data.ps_count}";
    var ups_money = "{$data.ups_money}";
    var ups_count = "{$data.ups_count}";
    require(['index/statistics']);
</script>
{/block}